package com.hashmap;

import java.util.HashMap;

/**
 * @author liuxiaoding
 * @data 2019/7/12
 */
public class TestMap {

    public static void main(String[] args) {

        HashMap<Object, Object> hm = new HashMap<Object, Object>();
        long s3 = System.currentTimeMillis();
        for (int i = 0; i < 1000000; i++) {
            hm.put(i + " ", i);
        }
        for (int i = 0; i < 1000000; i++) {
            hm.get(i);
        }
        long s4 = System.currentTimeMillis();
        System.out.println("jdkHashMap usetime:" + (s4 - s3));
    }
}
